<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {#  块标题  #}
    <title>{% block mytitle %}
        flask app 首页
    {% endblock %}</title>
    
    {#块样式，使用bootstrap.load_css()加载bootstrap的css资源#}
    {% block mystyle %}{{ bootstrap.load_css() }}{% endblock %}

</head>
<body>
    {#块导航栏#}
    {% block navbar %}
    <nav class="navbar navbar-default">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">               
                    <a class="navbar-brand" href="#">Cycle的个人博客</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">首页 <span class="sr-only"></span></a></li>
                    <li><a href="#">关于我</a></li>
                    <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">文章分类<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">程序人生</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">慢生活</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">日常随笔</a></li>
                    </ul>
                    </li>
                </ul>

                <form class="navbar-form navbar-left">
                    <div class="form-group">
                    <input type="text" class="form-control" placeholder="搜索文章">
                    </div>
                    <button type="submit" class="btn btn-default">搜索</button>
                </form>

                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">登录</a></li>
                    <li>
                        <a href="#">注册</a>
                    </li>
                </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
    {% endblock %}

    {#块内容#}
    {% block concent %}
    <h1>我是首页</h1>
    {% endblock %}

    {#块JavaScript ，使用bootstrap.load_js()加载bootstrap的JavaScript资源#}
    {% block scripts %}{{ bootstrap.load_js() }}{% endblock %}

    {#块底部内容#}
    {% block footer %}
    {% endblock %}
    </body>
</html>


